package net.cnki.sunny.service;

import com.github.pagehelper.PageInfo;
import net.cnki.sunny.model.dto.RoleDTO;
import net.cnki.sunny.model.entity.Role;
import net.cnki.sunny.model.entity.User;
import net.cnki.sunny.model.vo.RoleVO;

import java.util.List;

public interface RoleService {

    void addRole(Role role);

    void modifyRole(Role role);

    List<User> getNotAssignedRoleUser(Integer id,String username);

    void modifyRoleUser(RoleDTO roleDTO);

    void deleteRole(Integer id);

    PageInfo<RoleVO> getRoleList(RoleDTO roleDTO);
}
